import request from '@/utils/request'

export default {
  // 借款信息列表
  getList(searchObj) {
    return request({
      url: `/service/admin/borrow_info/list_page`,
      method: 'get',
      params: searchObj
    })
  },

  // 借款详情
  show(id) {
    return request({
      url: `/service/admin/borrow_info/show/${id}`,
      method: 'get'
    })
  },

  // 借款审批
  approval(borrowInfoApproval) {
    return request({
      url: '/service/admin/borrow_info/approval',
      method: 'post',
      data: borrowInfoApproval
    })
  }
}
